package com.lcy.app.component;

import android.media.MediaPlayer;
import android.os.Bundle;

import androidx.core.view.inputmethod.InputContentInfoCompat;

public class MusicOnCompleteListener implements MediaPlayer.OnCompletionListener {
    private MusicPlay musicPlay;

    public MusicOnCompleteListener(MusicPlay musicPlay){
        this.musicPlay=musicPlay;
    }

    @Override
    public void onCompletion(MediaPlayer mediaPlayer) {
        // 单曲播放
        if (musicPlay.getMusicCurrentOnePlay()){
            mediaPlayer.start();
        }
        // 顺序播放
        if (musicPlay.getMusicOrderPlay()){

        }
        // 列表循环
        if (musicPlay.getMusicCirclePlay()){

        }
    }
}
